function userAdd(){
	var flag = 0;
	var inputs = $("#userAddOne input[type='text']");
	$(inputs).each(function(i){
		if(inputs[i].value.trim() == "" && i != 8){
			alert("请输入正确的信息。"+i);
			inputs[i].value = "";
			inputs[i].focus();
			flag = 1;
			return false;
		}
	});
	if(flag == 1){
		return;
	}
	var inputPass = $("#userAddOne input[type='password']");
	$(inputPass).each(function(j){
		if(inputPass[j].value.trim() == ""){
			alert("请输入密码。");
			inputPass[j].value = "";
			inputPass[j].focus();
			return false;
		}
	});
}
function batchImport(){
	var fileName = $("#f").val();
	var fileSuffixs = fileName.split(".");
	console.log(fileSuffixs.length);
	var fileSuffix = fileSuffixs[fileSuffixs.length-1];
	if(fileSuffix != "xls"){
		alert("请选择后缀名为xls的文件上传。");
		return false;
	}
	
}